package com.bangbang;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2 // 开启接口文档引擎功能  这是Swagger的  使用需要开启
@EnableDiscoveryClient  // 支持所有   服务发现组件  必备
@EnableCircuitBreaker  //  开启 熔断(降级)功能
@MapperScan("com.bangbang.mapper")
public class catalogServiceApp {
    public static void main(String[] args) {
        SpringApplication.run(catalogServiceApp.class,args);
    }
}
